PreviousNextTracker indexSee it online !

(127/314) 3014430 - TextTools block sort is deleting text

TextTools block column sort is failing to sort, and is also deleting text from the buffer.

Steps to reproduce:

TextTools 1.14
jEdit 4.3.2
Java 1.6
Windows XP SP3


1. Create a text file by pasting the following text:

aaaaaaaaaaaaaaa
bbbb030bbbbbbbb
cccc020cccccccc
dddd010dddddddd
eeee120eeeeeeee
ffff130ffffffff
gggg070gggggggg
hhhh040hhhhhhhh
iiiiiiiiiiiiiii

2. Block select row B column 4 through row H column 7.


Example:

b030
c020
d010
e120
f130
g070
h040

3. Select Plugins -> TextTools -> Sort … -> Sort Selected Block

4. Click Ok.

Bug #1: The last column of selected text (i.e. the vertical column of "0" characters) was deleted from the selection.

Bug #2: Nothing was sorted.

Submitted vegcrow - 2010-06-10 - 16:21:33z Assigned nobody
Priority 5 Category None
Status Open Group None
Resolution None Visibility No

Comments

2010-06-10 - 21:25:21z
rschwenn
I can reproduce that, when "Sort Selected Block" is chosen, the last selected character of each line is deleted. It's surely a bug.

Because in the given example the selected block is already sorted, "Bug #2" doesn't exist. When I choose "descending" a visible sort is performed.
2010-06-10 - 21:41:13z
vegcrow
Confirmed, bug #2 non-existent. Will go drink some coffee now. :)

Attachments